<template>
	<!-- 售后 -->
	<view>
		<view class="f_list">
			<view class="f_item" v-for="item in finList">
				<view class="f_info clamp">
					<view class="f_tit">
						<text class="clamp">订单号：{{item.ordersn}}</text>
					</view>
					<view class="f_time">付款时间：{{item.paytime}}</view>
					<view class="f_time">申请时间：{{item.refundtime}}</view>
				</view>
				<view class="f_num">{{item.applyprice}}</view>
				<!-- <view class="f_status f_reject" v-if="item.status=='驳回'">{{item.status}}</view>
				<view class="f_status f_pass" v-else-if="item.status=='已发放'">{{item.status}}</view>
				<view class="f_status" v-else>{{item.status}}</view> -->
			</view>
		</view>
		<view class="empty_loading">
			<image v-if="isloading" src="/static/business/loading.gif" ></image>
			<view v-if="ismore">到底了~</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				finList: [],
				page: 0,
				isloading: false,
				ismore: false,
			};
		},
		onLoad(){
			this.getFinList();
		},
		onReachBottom(){
			this.getFinList();
		},
		methods: {
			getFinList(){
				this.page++;
				this.isloading = true;
				this.ismore = false;
				this.$axios('lists/waitRfundOrder','POST','order',{
					page: this.page
				}).then(res=>{
					this.isloading = false;
					if(res.data.code == 200){
						this.finList = [...this.finList, ...res.data.data.list];
						this.ismore = res.data.data.list.length <= 0;
					}
				})
			}
		}
	}
</script>

<style lang="scss" scoped>
.f_list{
	padding: 10rpx 20rpx 40rpx;
	.f_item{
		display: flex;
		justify-content: space-between;
		align-items: center;
		border-bottom: 1rpx solid #ece7e7;
		padding: 14rpx 0;
		.f_info{
			flex: 1;
		}
		.f_time{
			color: #666;
			font-size: 24rpx;
		}
		.f_num{
			color: #d82626;
			width: 27%;
			text-align: right;
			white-space: nowrap;
		}
		.f_status{
			color: $bg-color;
			font-size: 26rpx;
			width: 88rpx;
			text-align: right;
		}
		.f_pass{
			color: green;
			
		}
		.f_reject{
			color: red;
		}
	}
}
</style>
